﻿// =================================================================== 
// 项目说明,功能实体类,用CodeSmith自动生成。
// =================================================================== 
// 文件名: NodesEntity.cs
// 修改时间：2020-9-8 10:40:06
// 修改人: lixiong
// =================================================================== 
using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using JX.Infrastructure.Attribute;
using JX.Infrastructure.Common;

namespace JX.Core.Entity
{
	/// <summary>
	/// 数据库表：Nodes 的实体类.
	/// </summary>
	[Table("Nodes")]
	public partial class NodesEntity
	{
		#region Properties
		private int? _nodeID = 0;
		/// <summary>
		/// 节点ID(主键)
		/// </summary>
		[Column("NodeID",TypeName="int")]
		[Key]
		public int? NodeID
		{
			get {return _nodeID;}
			set {_nodeID = value;}
		}
		
		private System.String _nodeIdentifier = string.Empty;
		/// <summary>
		/// 节点标识符，用于前台调用时可以直接用标识符取代ID。
		/// </summary>
		[Column("NodeIdentifier",TypeName="nvarchar(50)")]
		[DisplayFormat(ConvertEmptyStringToNull = false)]
		public System.String NodeIdentifier
		{
			get {return _nodeIdentifier;}
			set {_nodeIdentifier = value;}
		}
		
		private int? _nodeType = 0;
		/// <summary>
		/// 节点类型。0为容器栏目，1为专题栏目，2为单个页面，3为外部链接
		/// </summary>
		[Column("NodeType",TypeName="int")]
		public int? NodeType
		{
			get {return _nodeType;}
			set {_nodeType = value;}
		}
		
		private int? _parentID = 0;
		/// <summary>
		/// 父节点ID，根节点的值为0
		/// </summary>
		[Column("ParentID",TypeName="int")]
		public int? ParentID
		{
			get {return _parentID;}
			set {_parentID = value;}
		}
		
		private System.String _parentPath = string.Empty;
		/// <summary>
		/// 父路径，根节点的值为0，子节点的值为：0,1,6,76
		/// </summary>
		[Column("ParentPath",TypeName="nvarchar(MAX)")]
		[DisplayFormat(ConvertEmptyStringToNull = false)]
		public System.String ParentPath
		{
			get {return _parentPath;}
			set {_parentPath = value;}
		}
		
		private int? _depth = 0;
		/// <summary>
		/// 节点树的深度，根节点的值为0，子节点的值为该节点所在的层数
		/// </summary>
		[Column("Depth",TypeName="int")]
		public int? Depth
		{
			get {return _depth;}
			set {_depth = value;}
		}
		
		private int? _rootID = 0;
		/// <summary>
		/// 根节点排序ID。根节点使用RootID进行排序，同时子节点与根节点的RootID相等。
		/// </summary>
		[Column("RootID",TypeName="int")]
		public int? RootID
		{
			get {return _rootID;}
			set {_rootID = value;}
		}
		
		private int? _child = 0;
		/// <summary>
		/// 子节点数
		/// </summary>
		[Column("Child",TypeName="int")]
		public int? Child
		{
			get {return _child;}
			set {_child = value;}
		}
		
		private System.String _arrChildID = string.Empty;
		/// <summary>
		/// 所有子节点的ID数组
		/// </summary>
		[Column("arrChildID",TypeName="nvarchar(MAX)")]
		[DisplayFormat(ConvertEmptyStringToNull = false)]
		public System.String ArrChildID
		{
			get {return _arrChildID;}
			set {_arrChildID = value;}
		}
		
		private int? _prevID = 0;
		/// <summary>
		/// 同级节点的上一个节点ID
		/// </summary>
		[Column("PrevID",TypeName="int")]
		public int? PrevID
		{
			get {return _prevID;}
			set {_prevID = value;}
		}
		
		private int? _nextID = 0;
		/// <summary>
		/// 同级节点的下一个节点ID
		/// </summary>
		[Column("NextID",TypeName="int")]
		public int? NextID
		{
			get {return _nextID;}
			set {_nextID = value;}
		}
		
		private int? _orderSort = 0;
		/// <summary>
		/// 排序ID
		/// </summary>
		[Column("OrderSort",TypeName="int")]
		public int? OrderSort
		{
			get {return _orderSort;}
			set {_orderSort = value;}
		}
		
		private System.String _nodeDir = string.Empty;
		/// <summary>
		/// 节点目录，只能是英文字母和数字，并且要以字母开头。
		/// </summary>
		[Column("NodeDir",TypeName="nvarchar(50)")]
		[DisplayFormat(ConvertEmptyStringToNull = false)]
		public System.String NodeDir
		{
			get {return _nodeDir;}
			set {_nodeDir = value;}
		}
		
		private System.String _parentDir = string.Empty;
		/// <summary>
		/// 父目录，系统自动根据树形目录算出来的目录路径
		/// </summary>
		[Column("ParentDir",TypeName="nvarchar(MAX)")]
		[DisplayFormat(ConvertEmptyStringToNull = false)]
		public System.String ParentDir
		{
			get {return _parentDir;}
			set {_parentDir = value;}
		}
		
		private System.String _nodeName = string.Empty;
		/// <summary>
		/// 节点名称
		/// </summary>
		[Column("NodeName",TypeName="nvarchar(50)")]
		[DisplayFormat(ConvertEmptyStringToNull = false)]
		public System.String NodeName
		{
			get {return _nodeName;}
			set {_nodeName = value;}
		}
		
		private System.String _tips = string.Empty;
		/// <summary>
		/// 节点提示，不支持HTML
		/// </summary>
		[Column("Tips",TypeName="nvarchar(255)")]
		[DisplayFormat(ConvertEmptyStringToNull = false)]
		public System.String Tips
		{
			get {return _tips;}
			set {_tips = value;}
		}
		
		private System.String _description = string.Empty;
		/// <summary>
		/// 节点说明，支持HTML
		/// </summary>
		[Column("Description",TypeName="nvarchar(MAX)")]
		[DisplayFormat(ConvertEmptyStringToNull = false)]
		public System.String Description
		{
			get {return _description;}
			set {_description = value;}
		}
		
		private System.String _nodePicUrl = string.Empty;
		/// <summary>
		/// 图片地址
		/// </summary>
		[Column("NodePicUrl",TypeName="nvarchar(255)")]
		[DisplayFormat(ConvertEmptyStringToNull = false)]
		public System.String NodePicUrl
		{
			get {return _nodePicUrl;}
			set {_nodePicUrl = value;}
		}
		
		private System.String _meta_Keywords = string.Empty;
		/// <summary>
		/// 针对搜索引擎的关键字
		/// </summary>
		[Column("Meta_Keywords",TypeName="nvarchar(255)")]
		[DisplayFormat(ConvertEmptyStringToNull = false)]
		public System.String Meta_Keywords
		{
			get {return _meta_Keywords;}
			set {_meta_Keywords = value;}
		}
		
		private System.String _meta_Description = string.Empty;
		/// <summary>
		/// 针对搜索引擎的说明
		/// </summary>
		[Column("Meta_Description",TypeName="nvarchar(255)")]
		[DisplayFormat(ConvertEmptyStringToNull = false)]
		public System.String Meta_Description
		{
			get {return _meta_Description;}
			set {_meta_Description = value;}
		}
		
		private System.Boolean _isShowOnMenu = false;
		/// <summary>
		/// 是否在顶部菜单处显示
		/// </summary>
		[Column("IsShowOnMenu",TypeName="bit")]
		public System.Boolean IsShowOnMenu
		{
			get {return _isShowOnMenu;}
			set {_isShowOnMenu = value;}
		}
		
		private System.Boolean _isShowOnPath = false;
		/// <summary>
		/// 是否位置导航处显示
		/// </summary>
		[Column("IsShowOnPath",TypeName="bit")]
		public System.Boolean IsShowOnPath
		{
			get {return _isShowOnPath;}
			set {_isShowOnPath = value;}
		}
		
		private System.Boolean _isShowOnMap = false;
		/// <summary>
		/// 是否在网站地图（栏目导航）处显示
		/// </summary>
		[Column("IsShowOnMap",TypeName="bit")]
		public System.Boolean IsShowOnMap
		{
			get {return _isShowOnMap;}
			set {_isShowOnMap = value;}
		}
		
		private System.Boolean _isShowOnList_Index = false;
		/// <summary>
		/// 是否在首页的分类列表处显示
		/// </summary>
		[Column("IsShowOnList_Index",TypeName="bit")]
		public System.Boolean IsShowOnList_Index
		{
			get {return _isShowOnList_Index;}
			set {_isShowOnList_Index = value;}
		}
		
		private System.Boolean _isShowOnList_Parent = false;
		/// <summary>
		/// 是否在父栏目的分类列表处显示
		/// </summary>
		[Column("IsShowOnList_Parent",TypeName="bit")]
		public System.Boolean IsShowOnList_Parent
		{
			get {return _isShowOnList_Parent;}
			set {_isShowOnList_Parent = value;}
		}
		
		private int? _purviewType = 0;
		/// <summary>
		/// 栏目权限。0--开放栏目  1--半开放栏目  2--认证栏目
		/// </summary>
		[Column("PurviewType",TypeName="int")]
		public int? PurviewType
		{
			get {return _purviewType;}
			set {_purviewType = value;}
		}
		
		private System.String _creater = string.Empty;
		/// <summary>
		/// 栏目创建者
		/// </summary>
		[Column("Creater",TypeName="nvarchar(50)")]
		[DisplayFormat(ConvertEmptyStringToNull = false)]
		public System.String Creater
		{
			get {return _creater;}
			set {_creater = value;}
		}
		
		private int? _inheritPurviewFromParent = 0;
		/// <summary>
		/// 从父栏目继承权限设置。
		/// </summary>
		[Column("InheritPurviewFromParent",TypeName="int")]
		public int? InheritPurviewFromParent
		{
			get {return _inheritPurviewFromParent;}
			set {_inheritPurviewFromParent = value;}
		}
		
		private int? _workFlowID = 0;
		/// <summary>
		/// 工作流程ID
		/// </summary>
		[Column("WorkFlowID",TypeName="int")]
		public int? WorkFlowID
		{
			get {return _workFlowID;}
			set {_workFlowID = value;}
		}
		
		private int? _hitsOfHot = 0;
		/// <summary>
		/// 本栏目热点的点击数最小值
		/// </summary>
		[Column("HitsOfHot",TypeName="int")]
		public int? HitsOfHot
		{
			get {return _hitsOfHot;}
			set {_hitsOfHot = value;}
		}
		
		private int? _leastOfEliteLevel = 0;
		/// <summary>
		/// 本栏目推荐的
		/// </summary>
		[Column("LeastOfEliteLevel",TypeName="int")]
		public int? LeastOfEliteLevel
		{
			get {return _leastOfEliteLevel;}
			set {_leastOfEliteLevel = value;}
		}
		
		private int? _openType = 0;
		/// <summary>
		/// 此节点的打开方式( 0--原窗口  1--新窗口)
		/// </summary>
		[Column("OpenType",TypeName="int")]
		public int? OpenType
		{
			get {return _openType;}
			set {_openType = value;}
		}
		
		private int? _itemCount = 0;
		/// <summary>
		/// 项目数
		/// </summary>
		[Column("ItemCount",TypeName="int")]
		public int? ItemCount
		{
			get {return _itemCount;}
			set {_itemCount = value;}
		}
		
		private int? _itemChecked = 0;
		/// <summary>
		/// 审核项目数
		/// </summary>
		[Column("ItemChecked",TypeName="int")]
		public int? ItemChecked
		{
			get {return _itemChecked;}
			set {_itemChecked = value;}
		}
		
		private int? _commentCount = 0;
		/// <summary>
		/// 评论数
		/// </summary>
		[Column("CommentCount",TypeName="int")]
		public int? CommentCount
		{
			get {return _commentCount;}
			set {_commentCount = value;}
		}
		
		private System.String _custom_Content = string.Empty;
		/// <summary>
		/// 自设内容
		/// </summary>
		[Column("Custom_Content",TypeName="nvarchar(MAX)")]
		[DisplayFormat(ConvertEmptyStringToNull = false)]
		public System.String Custom_Content
		{
			get {return _custom_Content;}
			set {_custom_Content = value;}
		}
		
		private System.Boolean _isCreateListPage = false;
		/// <summary>
		/// 列表页生成方式 0不生成，1生成
		/// </summary>
		[Column("IsCreateListPage",TypeName="bit")]
		public System.Boolean IsCreateListPage
		{
			get {return _isCreateListPage;}
			set {_isCreateListPage = value;}
		}
		
		private System.Boolean _isCreateContentPage = false;
		/// <summary>
		/// 内容页生成方式 0不生成，1生成
		/// </summary>
		[Column("IsCreateContentPage",TypeName="bit")]
		public System.Boolean IsCreateContentPage
		{
			get {return _isCreateContentPage;}
			set {_isCreateContentPage = value;}
		}
		
		private int? _autoCreateHtmlType = 0;
		/// <summary>
		/// 自动生成Html类型
		/// </summary>
		[Column("AutoCreateHtmlType",TypeName="int")]
		public int? AutoCreateHtmlType
		{
			get {return _autoCreateHtmlType;}
			set {_autoCreateHtmlType = value;}
		}
		
		private System.String _contentPageHtmlRule = string.Empty;
		/// <summary>
		/// 内容页的文件名规则
		/// </summary>
		[Column("ContentPageHtmlRule",TypeName="nvarchar(255)")]
		[DisplayFormat(ConvertEmptyStringToNull = false)]
		public System.String ContentPageHtmlRule
		{
			get {return _contentPageHtmlRule;}
			set {_contentPageHtmlRule = value;}
		}
		
		private System.String _listPageHtmlRule = string.Empty;
		/// <summary>
		/// 列表页的文件名规则
		/// </summary>
		[Column("ListPageHtmlRule",TypeName="nvarchar(255)")]
		[DisplayFormat(ConvertEmptyStringToNull = false)]
		public System.String ListPageHtmlRule
		{
			get {return _listPageHtmlRule;}
			set {_listPageHtmlRule = value;}
		}
		
		private System.String _itemAspxFileName = string.Empty;
		/// <summary>
		/// 动态方式的内容页文件名
		/// </summary>
		[Column("ItemAspxFileName",TypeName="nvarchar(50)")]
		[DisplayFormat(ConvertEmptyStringToNull = false)]
		public System.String ItemAspxFileName
		{
			get {return _itemAspxFileName;}
			set {_itemAspxFileName = value;}
		}
		
		private System.String _relateNode = string.Empty;
		/// <summary>
		/// 关联节点
		/// </summary>
		[Column("RelateNode",TypeName="nvarchar(MAX)")]
		[DisplayFormat(ConvertEmptyStringToNull = false)]
		public System.String RelateNode
		{
			get {return _relateNode;}
			set {_relateNode = value;}
		}
		
		private System.String _relateSpecial = string.Empty;
		/// <summary>
		/// 关联专题
		/// </summary>
		[Column("RelateSpecial",TypeName="nvarchar(MAX)")]
		[DisplayFormat(ConvertEmptyStringToNull = false)]
		public System.String RelateSpecial
		{
			get {return _relateSpecial;}
			set {_relateSpecial = value;}
		}
		
		private System.String _defaultTemplateFile = string.Empty;
		/// <summary>
		/// 此节点的默认首页模板
		/// </summary>
		[Column("DefaultTemplateFile",TypeName="nvarchar(255)")]
		[DisplayFormat(ConvertEmptyStringToNull = false)]
		public System.String DefaultTemplateFile
		{
			get {return _defaultTemplateFile;}
			set {_defaultTemplateFile = value;}
		}
		
		private System.String _containChildTemplateFile = string.Empty;
		/// <summary>
		/// 列表页模板
		/// </summary>
		[Column("ContainChildTemplateFile",TypeName="nvarchar(255)")]
		[DisplayFormat(ConvertEmptyStringToNull = false)]
		public System.String ContainChildTemplateFile
		{
			get {return _containChildTemplateFile;}
			set {_containChildTemplateFile = value;}
		}
		
		private int? _itemOpenType = 0;
		/// <summary>
		/// 此节点下项目的打开方式 ( 0--原窗口  1--新窗口)
		/// </summary>
		[Column("ItemOpenType",TypeName="int")]
		public int? ItemOpenType
		{
			get {return _itemOpenType;}
			set {_itemOpenType = value;}
		}
		
		private int? _itemListOrderType = 0;
		/// <summary>
		/// 此节点下项目列表的排序方式
		/// </summary>
		[Column("ItemListOrderType",TypeName="int")]
		public int? ItemListOrderType
		{
			get {return _itemListOrderType;}
			set {_itemListOrderType = value;}
		}
		
		private int? _itemPageSize = 0;
		/// <summary>
		/// 节点下内容每页分页数
		/// </summary>
		[Column("ItemPageSize",TypeName="int")]
		public int? ItemPageSize
		{
			get {return _itemPageSize;}
			set {_itemPageSize = value;}
		}
		
		private System.String _upLoadDirRule = string.Empty;
		/// <summary>
		/// 上传文件路径规则
		/// </summary>
		[Column("UpLoadDirRule",TypeName="nvarchar(255)")]
		[DisplayFormat(ConvertEmptyStringToNull = false)]
		public System.String UpLoadDirRule
		{
			get {return _upLoadDirRule;}
			set {_upLoadDirRule = value;}
		}
		
		private System.String _linkUrl = string.Empty;
		/// <summary>
		/// 外部链接地址
		/// </summary>
		[Column("LinkUrl",TypeName="nvarchar(255)")]
		[DisplayFormat(ConvertEmptyStringToNull = false)]
		public System.String LinkUrl
		{
			get {return _linkUrl;}
			set {_linkUrl = value;}
		}
		
		private System.String _settings = string.Empty;
		/// <summary>
		/// 节点设置，使用XML保存配置
		/// </summary>
		[Column("Settings",TypeName="nvarchar(MAX)")]
		[DisplayFormat(ConvertEmptyStringToNull = false)]
		public System.String Settings
		{
			get {return _settings;}
			set {_settings = value;}
		}
		
		private System.String _iPLock = string.Empty;
		/// <summary>
		/// 节点IP设置，使用XML保存配置
		/// </summary>
		[Column("IPLock",TypeName="nvarchar(MAX)")]
		[DisplayFormat(ConvertEmptyStringToNull = false)]
		public System.String IPLock
		{
			get {return _iPLock;}
			set {_iPLock = value;}
		}
		
		private System.String _listPagePostFix = string.Empty;
		/// <summary>
		/// 列表页后缀
		/// </summary>
		[Column("ListPagePostFix",TypeName="nvarchar(50)")]
		[DisplayFormat(ConvertEmptyStringToNull = false)]
		public System.String ListPagePostFix
		{
			get {return _listPagePostFix;}
			set {_listPagePostFix = value;}
		}
		
		private int? _listPageSavePathType = 0;
		/// <summary>
		/// 列表页生成类型
		/// </summary>
		[Column("ListPageSavePathType",TypeName="int")]
		public int? ListPageSavePathType
		{
			get {return _listPageSavePathType;}
			set {_listPageSavePathType = value;}
		}
		
		private System.Boolean _isNeedCreateHtml = false;
		/// <summary>
		/// 节点下是否有需要生成HTML的内容
		/// </summary>
		[Column("IsNeedCreateHtml",TypeName="bit")]
		public System.Boolean IsNeedCreateHtml
		{
			get {return _isNeedCreateHtml;}
			set {_isNeedCreateHtml = value;}
		}
		
		private System.String _cultureName = string.Empty;
		/// <summary>
		/// 文化名(语言种类)
		/// </summary>
		[Column("CultureName",TypeName="nvarchar(10)")]
		[DisplayFormat(ConvertEmptyStringToNull = false)]
		public System.String CultureName
		{
			get {return _cultureName;}
			set {_cultureName = value;}
		}
		
		private System.Boolean _isSubDomain = false;
		/// <summary>
		/// 是否开启子域名
		/// </summary>
		[Column("IsSubDomain",TypeName="bit")]
		public System.Boolean IsSubDomain
		{
			get {return _isSubDomain;}
			set {_isSubDomain = value;}
		}
		
		private System.String _subDomain = string.Empty;
		/// <summary>
		/// 子域名
		/// </summary>
		[Column("SubDomain",TypeName="nvarchar(255)")]
		[DisplayFormat(ConvertEmptyStringToNull = false)]
		public System.String SubDomain
		{
			get {return _subDomain;}
			set {_subDomain = value;}
		}
		
		#endregion
	}
}
